﻿using FluentNHibernate.Mapping;
using MediaSage.Lib.UIFramework.Dialog.Entities;

namespace MediaSage.Lib.UIFramework.Dialog.Mappings
{
    public class DialogMappingMap : ClassMap<DialogMappingEntity>
    {
        public DialogMappingMap()
        {
            Id(m => m.ID);
            Map(m => m.MessageCaption);
            Map(m => m.MessageText);
            HasMany(m => m.ResultOptions).Cascade.All().Table("MessagingOptions");
            Map(m => m.DialogResult);
            Map(m => m.MsgType);
        }
    }
}